<?php
    require ( 'init.inc.php' );
    require ( 'checkadmin.inc.php');

    //$support_infomation = '该消息来自服务器！';

    if ($_GET["action"]=="top") {
        $tpl->assign('support_infomation',$support_infomation);
		$tpl->assign('login_user',$_SESSION["AdminUser"]);
        $tpl->display('top.htm');
        exit;
    }
    else {
        if ($_GET["action"]=="switch") $tpl->assign('is_switch',true);
        $show_top = file_exists($tpl->template_dir."top.htm") ? true : false;
        $tpl->assign('show_top',$show_top);
        $tpl->display('index.htm');
    }
?>